package com.gavindon.httpwork

import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactory


/**
 * description:
 * Created by liNan on  2021/7/7 15:45
 */
object RetrofitHelper {
    init {
        val retrofit = Retrofit.Builder()
            .addConverterFactory(MoshiConverterFactory.create())
            .baseUrl("127.0.0.1:8888/")
            .build()
            .create(ApiService::class.java)

        fun service(): ApiService {
            return retrofit
        }

    }


}